package timeUnit;

import java.util.concurrent.TimeUnit;

public class Main {
    public static void main(String[] args) {
        System.out.println(TimeUnit.DAYS.convert(1000,TimeUnit.MILLISECONDS));
        //一天有多少毫秒
        System.out.println(TimeUnit.DAYS.toMillis(1));
        System.out.println(TimeUnit.NANOSECONDS.toMillis(1));

    }
}
